package org.hydrakyoufeng.vv.hello;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("hello")
public class HelloController {

    @ResponseBody
    @RequestMapping("querySwiperList")
    public Object querySwiperList() {
        var list = new ArrayList<Map<String, String>>();
        for (var i = 0; i < 6; i++) {
            var map = new HashMap<String, String>();
            map.put("image_src","https://zy.forerunnercollege.com/vv-swiper-" + (i + 1) + ".jpg");
            list.add(map);
        }
        return list;
    }

}
